import logging
import yaml
import os


logger = logging.getLogger(__name__)


if os.path.exists("logging.yaml"):
    with open("logging.yaml", "r", encoding="utf-8") as f:
        config = yaml.load(f, Loader=yaml.FullLoader)
        logging.config.dictConfig(config)
else:
    logging.basicConfig(level=logging.INFO)
